//
//  JSMessage.m
//  3 -- QQ project
//
//  Created by Rainy Zou on 15/11/24.
//  Copyright © 2015年 Rainy Zou. All rights reserved.
//

#import "JSMessage.h"

@implementation JSMessage

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if(self == [super init])
    {
        self.time = dict[@"time"];
        self.text = dict[@"text"];
        self.type = [dict[@"type"] integerValue];
    }
    return self;
}

+ (instancetype)messageWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

@end
